<?php
session_start();
date_default_timezone_set('Asia/Shanghai'); 
include_once("db.php");
?>
<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <style>
    body,*{ margin: 0;padding: 0;font-family: "微软雅黑";font-size: 14px;}
	.fl{float: left;}
	.fr{float: right;}
	input,select{ height:26px; padding: 0 6px;}
	a{color: #007500;text-decoration: none;}
	table { border-collapse:collapse; margin:15px auto;}
	table.xx{width:770px;}
	table.bd{width:370px;}
    table td,table th{border:#ddd solid 1px;padding:7px 5px;text-align:center}
	table td{border:#ddd solid 1px;}
	.top{height:100px;background:#007500;}
	.banner{height:30px; padding-top:5px;}
	.top .title{height: 100px;
    padding: 0 15px;
    width: 970px;
	background:#007500;
	}

	.top h1{color:#FFFFFF;font-size:24px;padding-top: 30px;}
    .w1000{width:1000px;margin:0 auto;}
	.log{color:#FFF}
	.lefter{    width: 180px;
    background: #007500;
    height: 500px;}
	.lefter a.fa{display: block; border-bottom:#F00; margin: 5px 0;font-size: 16px; line-height: 40px; background: #007500;text-align: center;color: #fff;}
	.lefter a.son{display: block;
    font-size: 14px;
    line-height: 35px;
    margin: 5px 0;
    text-align: center;
    color: #fff;}
	.righter{width: 800px;
    border: #ddd solid 1px;
    margin-top: 0;
    min-height: 500px;}
	.righter .title{line-height: 45px;
    border-bottom: #ddd solid 1px;
    background: #ececec;
    font-size: 16px;
    padding: 0 15px;}
	.search{margin:15px;height:25px;}
	input[type="submit"]{background: #007500;
    border: 0;
	height:30px;
	line-height:30px;
    padding: 0 35px;
    color: #fff;}
  a:link {
	color: #007500;
}
  </style>
 <title>学生信息管理系统</title>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 </head>
<body>
  <div class="top">
	  <div class="w1000 title">
		  <h1>图书管理系统—管理后台</h1>
          <div class="log fr">
		  <?php
			if(!empty($_SESSION["username"])){
				echo '';
				echo "欢迎您，".$_SESSION["username"]."";
			?>
				<a href="logout.php"><font color="#FFFFFF">退出</font></a>
			<?php
			}else{
			   echo '<script>alert("没有登录，不能访问");window.location.href="login.php";</script>';
			   exit();
			}
		  ?>
		  </div>
	  </div>
  </div>
  <div class="main w1000">
 <div class="banner" align="center"><?php echo "您好！今天是：".date('Y').'年'.date('m').'月'.date('d').'日';?></div>
<div class="fl lefter">

		  <a href="book.php" class="fa">图书信息管理</a>
		  	  <a href="book_tj.php" class="son">添加图书信息</a>
			  <a href="book.php" class="son">图书信息管理</a>
		  <a href="admin_user.php" class="fa">系统用户管理</a>
		  	  <a href="admin_tj.php" class="son">添加系统用户</a>
			  <a href="admin_user.php" class="son">系统用户管理</a>
               <a href="user.php" class="fa">普通用户管理</a>
		  	  <a href="user_tj.php" class="son">添加普通用户</a>
			  <a href="user.php" class="son">普通用户管理</a>

		  
	  </div>
